package com.rd.sys.dto.commmon.enums;

import baseproj.common.constants.BaseEnum;

public class AnalysisEnum {
    /**
     * 统计类型信息.
     */
    public enum StatType implements BaseEnum {

        FIXATION("1", "注视点"),

        SACCADE("2", "扫视点"),

        MATERIAL("3", "素材"),

        PUPIL("4", "瞳孔"),

        RESULT("5", "结果"),

        EVENT("6", "事件");

        /** The code. */
        private final String code;

        /** The name. */
        private final String name;

        /**
         * Instantiates a new param type.
         * 
         * @param code
         *            the code
         * @param name
         *            the name
         */
        StatType(String code, String name) {
            this.code = code;
            this.name = name;
        }

        /**
         * Equals.
         * 
         * @param value
         *            the value
         * @return true, if successful
         * @version
         */
        public boolean equals(String value) {
            return this.code.equals(value);
        }

        /**
         * Gets the code.
         * 
         * @return the code
         */
        @Override
        public String getCode() {
            return code;
        }

        /**
         * Gets the name.
         * 
         * @return the name
         */
        @Override
        public String getName() {
            return name;
        }
    }
}
